package com.zzc.fwzpxt.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 轮播 banner
 * </p>
 *
 * @author XiaoBingBy
 * @since 2017-10-26
 */
public class Team extends Model<Team> {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
	/**
	 * 轮播图片
	 */
	@TableField("team_img")
	private String teamImg;
	/**
	 * 轮播地址
	 */
	@TableField("team_url")
	private String teamUrl;
	/**
	 * 排序号
	 */
	private Integer sort;
	/**
	 * 创建时间
	 */
	@TableField(value = "gmt_create", fill = FieldFill.INSERT)
	private Date gmtCreate;
	/**
	 * 修改时间
	 */
	@TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
	private Date gmtModified;
	/**
	 * 图片姓名
	 */
	@TableField("team_name")
	private String teamName;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTeamImg() {
		return teamImg;
	}

	public void setTeamImg(String teamImg) {
		this.teamImg = teamImg;
	}

	public String getTeamUrl() {
		return teamUrl;
	}

	public void setTeamUrl(String teamUrl) {
		this.teamUrl = teamUrl;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModified() {
		return gmtModified;
	}

	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}

	public String getTeamName() {
		return teamName;
	}

	public void setTeamName(String teamName) {
		this.teamName = teamName;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Team{" +
				"id=" + id +
				", teamImg=" + teamImg +
				", teamUrl=" + teamUrl +
				", sort=" + sort +
				", gmtCreate=" + gmtCreate +
				", gmtModified=" + gmtModified +
				", teamName=" + teamName +
				"}";
	}
}
